home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swagg-m
/
hardware.swg
/
0011_Set the TURBO speed.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-08-27
|
556b
|
31 lines
{
Does anyone out there know how to set the Software Turbo Speed on Mother
boards without hitting the Turbo Switch or the <Ctrl> <Alt> <-> key to
slow the system and or Speed it up again? Thanks...
}
Uses
Dos;
Procedure SetSpeed(Turbo : Boolean);
Var
Regs : Registers;
OldMem : Byte;
begin
{OldMem := Mem[$40 : $17];}
If Turbo then
Regs.AL := 78
else
Regs.AL := 74;
{Mem[$40 : $17] := 140;}
Regs.AH := $4F;
Intr($15, Regs);
{Mem[$40 : $17] := OldMem;}
end;
begin
SetSpeed(False);
end.